/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bankrmi;

import java.rmi.Remote;
import java.rmi.RemoteException;

/**
 *
 * @author Guillaume, Yann
 */
public interface Bank extends Remote {

    public Account newAccount(String name,String password,float amountMoney)
            throws RemoteException, bankrmi.Rejected;

    public Account getAccount(String name, String password)
            throws RemoteException,bankrmi.Rejected;

    public boolean deleteAccount(String name)
            throws RemoteException, bankrmi.Rejected;
}
